
package gui;

import java.awt.Component;

import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.JLabel;
import javax.swing.plaf.basic.BasicSplitPaneDivider;
import javax.swing.SwingConstants;

public class Item_Inhalt extends JPanel
{
	private static final long serialVersionUID = 1L;
	private JLabel l_name_inhalt;
	private JLabel l_beschreibung_inhalt;
	private JLabel l_kuerzel_inhalt;
	private JLabel l_stueckzahl_inhalt;
	private JLabel l_lagerort_inhalt;
	private JLabel l_name;
	private JLabel l_beschreibung;
	private JLabel l_kuerzel;
	private JLabel l_stueckzahl;
	private JLabel l_lagerort;

	public Item_Inhalt()
	{

		JSplitPane splitPane = new JSplitPane();
		add(splitPane);
		
		splitPane.setBorder(null);
		for (Component component : splitPane.getComponents())
			if (component instanceof BasicSplitPaneDivider)
				((BasicSplitPaneDivider) component).setBorder(null);
		
		JSplitPane splitPane_1 = new JSplitPane();
		splitPane_1.setOrientation(JSplitPane.VERTICAL_SPLIT);
		splitPane.setLeftComponent(splitPane_1);
		
		splitPane_1.setBorder(null);
		for (Component component : splitPane_1.getComponents())
			if (component instanceof BasicSplitPaneDivider)
				((BasicSplitPaneDivider) component).setBorder(null);

		JSplitPane splitPane_2 = new JSplitPane();
		splitPane_2.setOrientation(JSplitPane.VERTICAL_SPLIT);
		splitPane_1.setRightComponent(splitPane_2);

		splitPane_2.setBorder(null);
		for (Component component : splitPane_2.getComponents())
			if (component instanceof BasicSplitPaneDivider)
				((BasicSplitPaneDivider) component).setBorder(null);
		
		JSplitPane splitPane_3 = new JSplitPane();
		splitPane_3.setOrientation(JSplitPane.VERTICAL_SPLIT);
		splitPane_2.setRightComponent(splitPane_3);
		
		splitPane_3.setBorder(null);
		for (Component component : splitPane_3.getComponents())
			if (component instanceof BasicSplitPaneDivider)
				((BasicSplitPaneDivider) component).setBorder(null);

		JSplitPane splitPane_7 = new JSplitPane();
		splitPane_7.setOrientation(JSplitPane.VERTICAL_SPLIT);
		splitPane_3.setRightComponent(splitPane_7);
		
		splitPane_7.setBorder(null);
		for (Component component : splitPane_7.getComponents())
			if (component instanceof BasicSplitPaneDivider)
				((BasicSplitPaneDivider) component).setBorder(null);

		l_lagerort = new JLabel("Lagerort:");
		l_lagerort.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_7.setLeftComponent(l_lagerort);

		l_stueckzahl = new JLabel("Stueck:");
		l_stueckzahl.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_7.setRightComponent(l_stueckzahl);

		l_kuerzel = new JLabel("Kuerzel:");
		l_kuerzel.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_3.setLeftComponent(l_kuerzel);

		l_beschreibung = new JLabel("Beschreibung:");
		l_beschreibung.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_2.setLeftComponent(l_beschreibung);

		l_name = new JLabel("Name:");
		l_name.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_1.setLeftComponent(l_name);

		JSplitPane splitPane_4 = new JSplitPane();
		splitPane_4.setOrientation(JSplitPane.VERTICAL_SPLIT);
		splitPane.setRightComponent(splitPane_4);

		JSplitPane splitPane_5 = new JSplitPane();
		splitPane_5.setOrientation(JSplitPane.VERTICAL_SPLIT);
		splitPane_4.setRightComponent(splitPane_5);

		JSplitPane splitPane_6 = new JSplitPane();
		splitPane_6.setOrientation(JSplitPane.VERTICAL_SPLIT);
		splitPane_5.setRightComponent(splitPane_6);

		JSplitPane splitPane_8 = new JSplitPane();
		splitPane_8.setOrientation(JSplitPane.VERTICAL_SPLIT);
		splitPane_6.setRightComponent(splitPane_8);

		l_lagerort_inhalt = new JLabel("New label");
		l_lagerort_inhalt.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_8.setLeftComponent(l_lagerort_inhalt);

		l_stueckzahl_inhalt = new JLabel("New label");
		l_stueckzahl_inhalt.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_8.setRightComponent(l_stueckzahl_inhalt);

		l_kuerzel_inhalt = new JLabel("New label");
		l_kuerzel_inhalt.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_6.setLeftComponent(l_kuerzel_inhalt);

		l_beschreibung_inhalt = new JLabel("New label");
		l_beschreibung_inhalt.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_5.setLeftComponent(l_beschreibung_inhalt);

		l_name_inhalt = new JLabel("New label");
		l_name_inhalt.setHorizontalAlignment(SwingConstants.RIGHT);
		splitPane_4.setLeftComponent(l_name_inhalt);
		
		splitPane_4.setBorder(null);
		for (Component component : splitPane_4.getComponents())
			if (component instanceof BasicSplitPaneDivider)
				((BasicSplitPaneDivider) component).setBorder(null);
		splitPane_5.setBorder(null);
		for (Component component : splitPane_5.getComponents())
			if (component instanceof BasicSplitPaneDivider)
				((BasicSplitPaneDivider) component).setBorder(null);
		splitPane_6.setBorder(null);
		for (Component component : splitPane_6.getComponents())
			if (component instanceof BasicSplitPaneDivider)
				((BasicSplitPaneDivider) component).setBorder(null);
		splitPane_8.setBorder(null);
		for (Component component : splitPane_8.getComponents())
			if (component instanceof BasicSplitPaneDivider)
				((BasicSplitPaneDivider) component).setBorder(null);
		
		

	}

	public void setInhalt(String l_name_inhalt, String l_beschreibung_inhalt,
			String l_kuerzel_inhalt, int l_stueckzahl_inhalt,
			String l_lagerort_inhalt)
	{

		this.l_name_inhalt.setText(l_name_inhalt);
		this.l_beschreibung_inhalt.setText(l_beschreibung_inhalt);
		this.l_kuerzel_inhalt.setText(l_kuerzel_inhalt);
		this.l_stueckzahl_inhalt.setText(Integer.toString(l_stueckzahl_inhalt));
		this.l_lagerort_inhalt.setText(l_lagerort_inhalt);
	}

	public JLabel getL_name_inhalt()
	{
		return l_name_inhalt;
	}

	public JLabel getL_beschreibung_inhalt()
	{
		return l_beschreibung_inhalt;
	}

	public JLabel getL_kuerzel_inhalt()
	{
		return l_kuerzel_inhalt;
	}

	public JLabel getL_stueckzahl_inhalt()
	{
		return l_stueckzahl_inhalt;
	}

	public JLabel getL_lagerort_inhalt()
	{
		return l_lagerort_inhalt;
	}

	public JLabel getL_name()
	{
		return l_name;
	}

	public JLabel getL_beschreibung()
	{
		return l_beschreibung;
	}

	public JLabel getL_kuerzel()
	{
		return l_kuerzel;
	}

	public JLabel getL_stueckzahl()
	{
		return l_stueckzahl;
	}

	public JLabel getL_lagerort()
	{
		return l_lagerort;
	}

	public void setL_name_inhalt(JLabel l_name_inhalt)
	{
		this.l_name_inhalt = l_name_inhalt;
	}

	public void setL_beschreibung_inhalt(JLabel l_beschreibung_inhalt)
	{
		this.l_beschreibung_inhalt = l_beschreibung_inhalt;
	}

	public void setL_kuerzel_inhalt(JLabel l_kuerzel_inhalt)
	{
		this.l_kuerzel_inhalt = l_kuerzel_inhalt;
	}

	public void setL_stueckzahl_inhalt(JLabel l_stueckzahl_inhalt)
	{
		this.l_stueckzahl_inhalt = l_stueckzahl_inhalt;
	}

	public void setL_lagerort_inhalt(JLabel l_lagerort_inhalt)
	{
		this.l_lagerort_inhalt = l_lagerort_inhalt;
	}

	public void setL_name(JLabel l_name)
	{
		this.l_name = l_name;
	}

	public void setL_beschreibung(JLabel l_beschreibung)
	{
		this.l_beschreibung = l_beschreibung;
	}

	public void setL_kuerzel(JLabel l_kuerzel)
	{
		this.l_kuerzel = l_kuerzel;
	}

	public void setL_stueckzahl(JLabel l_stueckzahl)
	{
		this.l_stueckzahl = l_stueckzahl;
	}

	public void setL_lagerort(JLabel l_lagerort)
	{
		this.l_lagerort = l_lagerort;
	}

}
